import React from 'react';
import { Form } from 'antd';
import { AxCreateForm } from '@/components/AxForm/AxCreateForm';
import { AxInput, AxSelectSearch, AxTextArea } from '@/components/AxForm/AxFormItem';

const ManagerCreate: React.FC<any> = props => {
  const { form, ...rest } = props;

    return (
        <>
            <AxCreateForm
                form={form}
                title='申请负责人'
                {...rest}
                items={[
                    <AxSelectSearch
                        form={form}
                        label="所属部门"
                        field="campusId"
                        required
                    />,
                    <AxSelectSearch
                        form={form}
                        label="采购主体地址"
                        field="campusId1"
                        required
                    />,
                    <AxTextArea
                        form={form}
                        label="申请说明"
                        field="campusId3"
                        required
                    />,
                ]}
            />
        </>
    );
};

export default Form.create<any>()(ManagerCreate);
